export const initState = {
    list: [],
    n: 0
}
export const reducer = (state, action) => {
    switch (action.type) {
        case "changeList":
            console.log("=============");
            console.log(action.list);
            return {
                ...state,
                list: [...action.list]
            }
        case "changen":
            return {
                ...state,
                n: action.n
            }
        default :
            return state;
    }
}

